package pack2;

public class java19 {
    public static void main(String[] arge) {
        int A[][]={{4,2,3,3},{12,1,2,13},{5,2,1,2},{15,12,13,2}};
        int h[]=new int[16];
        for (int i = 0; i < h.length; i++) {
            h[i]=0;
        }
        for (int i = 0; i < h.length; i++) {
            for (int j = 0; j < 4; j++) {
                for (int k = 0; k < 4; k++) {
                    if(A[j][k]==i)
                        h[i]++;
                }
            }
        }
        for (int i = 0; i < h.length; i++) {
            System.out.println("h["+i+"]="+h[i]);
        }

    }
}